/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mx.com.ingsw.service;

public class ValidaCampos {

    public boolean password(String pass) {

        if (pass.length() != 8) {
            return false;
        } else {
            for (int i = 0; i < 8; i++) {
                if (pass.charAt(i) == ' ') {
                    return false;
                }
            }
            return true;
        }

    }

    public boolean cuenta(int cuenta) {
        if (cuenta > 999999999 || cuenta < 100000000) {
            return false;
        } else {
            return true;
        }
    }

    public boolean materia(int clave) {
        if (clave > 9999 || clave < 0) {
            return false;
        } else {
            return true;
        }
    }

    public boolean grupo(int numero) {
        if (numero > 99 || numero <= 0) {
            return false;
        } else {
            return true;
        }
    }


}